package com.icekrvams.air

import android.content.Context
import com.google.firebase.FirebaseApp
import com.icekrvams.air.firebase.RemoteConfigHelper
import com.icekrvams.air.versionchecker.LocalVersionChecker
import com.tencent.mmkv.MMKV

/**
 * 初始化当 Air SDK。
 */
object InitializerProvider {
    fun init(context: Context) {
        context.let {
            AppContextHolder.appContext = it
            MMKV.initialize(it)
            FirebaseApp.initializeApp(it)
            RemoteConfigHelper.initialize()
            LocalVersionChecker.initialize(it)
        }
    }
}